from paste.deploy import loadapp

def setup_config(command, filename, section, vars):
    """
    Place any commands to setup bumblebee here.
    """    
    app = loadapp('config:' + filename)
    from bumblebee import model as model
    model.connect()

    admin = model.User.get_by(email='admin@localhost')
    if not admin:
        admin = model.User(username='admin', password='admin1', email='admin@localhost')
        admin.flush()